<template>
  <div class="content-1600">
    <viInvoiceCollection ref="reference1" :deptList="deptList" />
    <viPopupProfit
      ref="reference2"
      :deptList="deptList"
      :monthList="monthList"
    />
    <viPopupDoubleBar
      ref="reference22"
      :deptList="deptList"
      :monthList="monthList"
    />
    <viPopupProgress ref="reference3" :deptList="deptList" />
    <viPopupBalance
      :accoutTagList="accoutTagList"
      :deptList="deptList"
      ref="reference4"
    />
    <viPopupDetail ref="reference5" :deptList="deptList" />
    <div class="banner-1600">
      <div class="banner-1600-plate">
        <div class="banner-1600-content">
          <viPlate :titleList="titleList" />
        </div>
      </div>
    </div>
    <div class="banner-1600">
      <div class="left-1600">
        <div class="left-1600-list">
          <div class="banner-1600-content">
            <viLine
              @enlarge="$refs.reference1.open()"
              @changeRadio="drawInvoiceCollection1"
              ref="invoiceCollection"
              :configurationInformation="
                configurationInformation.invoiceCollection
              "
            />
          </div>
        </div>
        <div class="left-1600-list">
          <div class="banner-1600-content">
            <!-- <viBar
              @enlarge="$refs.reference2.open(1)"
              @changeRadio="changeRadiodrawProfit"
              ref="profit"
              :configurationInformation="configurationInformation.profit"
            /> -->
            <viDoubleBar
              @enlarge="$refs.reference22.open()"
              ref="income"
              :deptId="deptId"
              :projectId="projectId"
              :configurationInformation="configurationInformation.income"
            />
          </div>
        </div>
      </div>
      <div class="right-1600">
        <div class="banner-1600-content">
          <viMap
            @changeDept="changeDept"
            @changeProject="changeProject"
            :deptId.sync="deptId"
            :deptList="deptList"
            :mapList="mapList"
            :mapStyleJson="mapStyleJson"
            :projectList="projectList"
            :projectId.sync="projectId"
          />
        </div>
      </div>
    </div>
    <div class="banner-1600">
      <div class="banner-1600-list">
        <div class="banner-1600-content">
          <viProgress ref="progress" @enlarge="$refs.reference3.open()" />
        </div>
      </div>
      <div class="banner-1600-list">
        <div class="banner-1600-content">
          <viBalance
            ref="balance"
            :balanceList="balanceList"
            :accoutTagList="accoutTagList"
            @enlarge="$refs.reference4.open(balanceList)"
          />
        </div>
      </div>
      <div class="banner-1600-list">
        <div class="banner-1600-content">
          <!-- <viBar
            @enlarge="$refs.reference2.open(2)"
            @changeRadio="drawAdvanceSelect"
            ref="advance"
            :configurationInformation="configurationInformation.advance"
          /> -->
          <viBar
            @enlarge="$refs.reference2.open(1)"
            @changeRadio="changeRadiodrawProfit"
            ref="profit"
            :configurationInformation="configurationInformation.profit"
          />
        </div>
      </div>
      <div class="banner-1600-list">
        <div class="banner-1600-content">
          <viDetailed
            :todayList="todayList"
            @enlarge="$refs.reference5.open()"
          />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import mix from "../mixins";
export default {
  name: "",
  mixins: [mix],
};
</script>

<style scoped lang="scss">
@media (max-width: 1366px) {
  @function vw($n) {
    // @return ($n * 100vw/1920);
    @return ($n * 1px);
  }

  .content-1600 {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(240, 242, 245, 1);
    padding: 2px 4px;

    * {
      margin: 0;
      // padding: 0;
      box-sizing: border-box;
    }

    .banner-1600 {
      width: 100%;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;

      &-plate {
        width: 100%;
        height: 274px;
        padding: 8px;
      }

      .left-1600 {
        width: 50%;
        height: 559px;
        display: flex;
        flex-direction: column;

        &-list {
          width: 100%;
          height: 50%;
          padding: 8px;
        }
      }

      .right-1600 {
        width: 50%;
        height: 559px;
        padding: 8px;
      }

      &-list {
        width: 50%;
        height: 273px;
        padding: 8px;
      }

      &-content {
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 1);
        box-shadow: 0px 1px vw(3) rgba(0, 21, 41, 0.08);
        border-radius: vw(3);
      }
    }
  }
}
</style>
